package com.atguigu.spring.autowire;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

class TestAutowire {

	@Test
	void test() {
		
		ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-autowire.xml");
		Person person = ctx.getBean("person", Person.class);
		System.out.println(person);
		
	}

}
